define(['app'], function(app) {
	'use strict';

	var controller = function controller($scope, Prizewinning ,GoPage,$stateParams) {
		$scope.id = $stateParams.id;
		$scope.init_data = function(){
			Prizewinning.seckill_result($scope.id,function(data){
				$scope.datas = data;
			})
		}
		$scope.init_data();
		
		$scope.onshow_predeposit = function(){
			GoPage.go_states("predeposit");
		}
		$scope.goBack = function(){
			//GoPage.go_back(-1);//这样回退到的页面不一定对
		}
		
	}

	controller.$inject = ['$scope', 'Prizewinning','GoPage','$stateParams'];
	
	return app.registerController("prizewinningctrl",controller);
});

